<%@page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>

<%@page import="java.sql.Connection,
java.sql.PreparedStatement,
java.sql.ResultSet,
java.sql.SQLException,
java.sql.Statement,
java.util.ArrayList,
java.util.Date,
java.util.List"
%>
<%@page import= "edu.gdut.imis.goods.common.*"%>
<%@page import= "edu.gdut.imis.goods.entity.*"%>
<%@page import= "edu.gdut.imis.goods.dao.*"%>
<%@page import= "edu.gdut.imis.goods.business.*"%>
<%@page import= "edu.gdut.imis.goods.business.factory.EBOFactory"%>
<%@page import= "edu.gdut.imis.goods.common.*"%>
<%@page import= "edu.gdut.imis.goods.common.PageBean"%>
<%@taglib uri="edu.gdut.imis/myTag" prefix="imis" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>分类</title>

    <link rel="shortcut icon" href="favicon.ico" />
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/index.css">
    <style>
        div{
            width:1200px;
            margin: 100px auto;
        }
        
        img{
            height: 250px;
            width: 250px;
            margin: 60px 60px;
            border:2px solid black;
        }
   </style>
</head>
<body>

     <header class="w">
        <div class="logo">
            <h1><a href="index.html">品优购商城</a></h1>
        </div>
        <form action="/Goods/find" method="POST">
            <input type="hidden" name="submitFlag" value="find">
            <div class="search">
                <input type="text" placeholder="电视机" name="fullName" >
                
                <button type="submit">搜索</button>
                <input type="text" name="id" id="search_id" style="display:none;">
                <!-- <input type="hidden"  name="id"> -->
                
            </div>
        </form>
        <div class="hotword">                        
            <a href="#" class="style_red">优惠购首发</a>
            <a href="#">亿元优惠</a>
            <a href="#">9.9元团购</a>
            <a href="#">美满99减30</a>
            <a href="#">办公用品</a>
            <a href="#">电脑</a>
            <a href="#">通信</a>
        </div>

        <a href="/Goods/showProductServlet?id=00000000" target='_blank'>
            <div class="shopping-car">
                我的购物车&nbsp;&gt;
                <i class="count">8888</i>
            </div>
        </a>
       
        
    </header>
	<div id="ppp"></div>
	
	 <div>
	 <jsp:useBean id="pb" class="edu.gdut.imis.goods.common.PageBean" scope="session"/>
	
	 <jsp:setProperty property="currentPage" name="pb"/>
	 <imis:page item="gm" pageBean="${pb}">
	 	 <a href="/Goods/detail?id=${gm.getId()}"><img alt="" src="upload/${gm.getImg_src()}"></a>
	 </imis:page>
	 
 
   
	
    </div>
</body>
</html>